<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>复合选择器优先级</title>
    <style>
        /* (0,0,2,1) */
        .c1 .c2 div{
            color: aqua;
        }
        /* 0,1,0,1 */
        div #box3{
            color:green;
        }
        /* 0,1,1,0 */
        #box1 .c3{
            color:aliceblue;
        }
    </style>
</head>
<body>
    <div id="box1" class="c1">
        <div id="box2" class="c2">
            <div id="box3" class="c3">
                我是什么颜色
            </div>
        </div>
    </div>
</body>
</html>